package com.sunday.pinxinghui.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by 刘涛 on 2017/8/20.
 */

public class Images implements Parcelable {


    private String viewUrl;
    private String saveUrl;
    private String name;
    private int width;
    private int height;
    private String viewPath;
    private String savePath;


    protected Images(Parcel in) {
        viewUrl = in.readString();
        saveUrl = in.readString();
        name = in.readString();
        width = in.readInt();
        height = in.readInt();
    }

    public static final Creator<Images> CREATOR = new Creator<Images>() {
        @Override
        public Images createFromParcel(Parcel in) {
            return new Images(in);
        }

        @Override
        public Images[] newArray(int size) {
            return new Images[size];
        }
    };

    public String getViewUrl() {
        return viewUrl;
    }

    public void setViewUrl(String viewUrl) {
        this.viewUrl = viewUrl;
    }

    public String getSaveUrl() {
        return saveUrl;
    }

    public void setSaveUrl(String saveUrl) {
        this.saveUrl = saveUrl;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(viewUrl);
        dest.writeString(saveUrl);
        dest.writeString(name);
        dest.writeInt(width);
        dest.writeInt(height);
    }

    public String getViewPath() {
        return viewPath;
    }

    public void setViewPath(String viewPath) {
        this.viewPath = viewPath;
    }

    public String getSavePath() {
        return savePath;
    }

    public void setSavePath(String savePath) {
        this.savePath = savePath;
    }
}
